{% extends "base.html" %}

{% block page_title %}
	{{ page_title }}
{% endblock %}

{% block content %}
	<h1>Entradas</h1>
	<ul>
	{% for entry in rs_entries %}
		<li>
			<h2><a href="{% url process_url_slug entry.url_name %}">{{ entry.name }}</a></h2>
			<ul>
				<li>En: {% for name, url_name in entry.get_in_categories %}<a href="{% url process_url_slug url_name %}">{{ name }}</a> {% endfor %}</li>
				<li>{{ entry.created_at|date:"D, d F Y - H:m:s" }}</li>
				<li>todo: Copete</li>
			</ul>
		</li>
	{% endfor %}
	</ul>
	<div>{% ifnotequal newer None %}<a href="{% ifequal newer 0 %}/{% else %}/{{ newer }}/{% endifequal%}">entradas nuevas</a>{% endifnotequal %} - {% if older %}<a href="/{{ older }}/">entradas viejas</a>{% endif %}</div>
{% endblock %}
